<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn">
<head>
  <link href="https://gmpg.org/xfn/11" rel="profile">
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="generator" content="Hugo 0.78.1" />

  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>My Blog</title>
  <meta name="description" content="" />

  
  <link type="text/css" rel="stylesheet" href="https://colin0724.gitee.io/css/print.css" media="print">
  <link type="text/css" rel="stylesheet" href="https://colin0724.gitee.io/css/poole.css">
  <link type="text/css" rel="stylesheet" href="https://colin0724.gitee.io/css/syntax.css">
  <link type="text/css" rel="stylesheet" href="https://colin0724.gitee.io/css/hyde.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Abril+Fatface|PT+Sans:400,400i,700">


  
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
  <link rel="shortcut icon" href="/favicon.png">

  
  <link href="https://colin0724.gitee.io/index.xml" rel="alternate" type="application/rss+xml" title="My Blog" />
  
</head>

  <body class=" ">
  <aside class="sidebar">
  <div class="container sidebar-sticky">
    <div class="sidebar-about">
      <a href="https://colin0724.gitee.io/"><h1>My Blog</h1></a>
      <p class="lead">
      An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.
      </p>
    </div>

    <nav>
      <ul class="sidebar-nav">
        <li><a href="https://colin0724.gitee.io/">Home</a> </li>
        
      </ul>
    </nav>

    <p>&copy; 2020. All rights reserved. </p>
  </div>
</aside>

    <main class="content container">
    <div class="posts">
<article class="post">
  <h1 class="post-title">
    <a href="https://colin0724.gitee.io/post/hugo/">Hugo</a>
  </h1>
  <time datetime="2020-11-11T11:58:28&#43;0800" class="post-date">Wed, Nov 11, 2020</time>
  快速开始 安装Hugo 1. 二进制安装（推荐：简单、快速） 到 Hugo Releases 下载对应的操作系统版本的Hugo二进制文件（hugo或者hugo.exe）
Mac下直接使用 Homebrew 安装：
brew install hugo 2. 源码安装 源码编译安装，首先安装好依赖的工具：
 Git Mercurial Go 1.3+ (Go 1.4+ on Windows)  设置好 GOPATH 环境变量，获取源码并编译：
$ export GOPATH=$HOME/go $ go get -v github.com/spf13/hugo 源码会下载到 $GOPATH/src 目录，二进制在 $GOPATH/bin/
如果需要更新所有Hugo的依赖库，增加 -u 参数：
$ go get -u -v github.com/spf13/hugo 生成站点 使用Hugo快速生成站点，比如希望生成到 /path/to/site 路径：
$ hugo new site /path/to/site 这样就在 /path/to/site 目录里生成了初始站点，进去目录：
$ cd /path/to/site 站点目录结构：
 ▸ archetypes/ ▸ content/ ▸ layouts/ ▸ static/ config.
  
  <div class="read-more-link">
    <a href="/post/hugo/">Read More…</a>
  </div>
  
</article>
</div>
    </main>

    
      
    
  </body>
</html>
